package org.example.filter;

import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;

/**
* Description: <br/>
* date: 2023/11/24 9:43<br/>
* @author: zhangzaijun <br/>
* @since JDK 1.8
*/

public class DemoGatewayFiltter extends AbstractGatewayFilterFactory<DemoGatewayFiltter.Config> {

    public DemoGatewayFiltter(){
        super(DemoGatewayFiltter.Config.class);
    }

    @Override
    public GatewayFilter apply(Config config) {
        return null;
    }

    public static class Config{
        private String businessAttributes;

        public String getBusinessAttributes() {
            return businessAttributes;
        }

        public void setBusinessAttributes(String businessAttributes) {
            this.businessAttributes = businessAttributes;
        }
    }
}
